package com.smedi.ismedi.inmail.core.port.adapter.service;

import com.smedi.ismedi.inmail.core.domain.aggregatemodel.weather.WeatherHourly;
import com.smedi.ismedi.inmail.core.port.adapter.service.dto.WeatherHistoryResponse;
import com.smedi.ismedi.inmail.core.port.adapter.service.dto.WeatherNowResponse;

import java.time.LocalDate;

/**
 * 天气接口
 *
 * @author jiangqinxuan
 * @date 2021/07/27
 */
public interface WeatherService {
    /**
     * 根据位置和日期获取天气
     *
     * @param locationId 地点Id
     * @param date       日期
     * @return CurrentUserRole
     */
    WeatherHistoryResponse getWeatherHistory(Long locationId, LocalDate date, String key);

    /**
     * 根据位置和日期获取实时天气
     *
     * @param locationId 地点Id
     * @return CurrentUserRole
     */
    WeatherNowResponse getWeatherNow(Long locationId, String key);
}
